<?php

require_once('inc.config.php');

if(!isset($_GET["rid"])){
	header("Location:index.php");
	exit;
}

if(!isLogin()){
	header("Location:register.php?msg=error3");
	exit;
}

$useTemplate   = 'renthouse_detail.html';

$page = new QuickSkin ($useTemplate);

template_ini($page);


$rinfo = $myHouse->getRhouseInfo($_GET["rid"]);
$goldlist = $myAgent->getGoldenList();
$clist = $myHouse->getCollection();

$page->assign($rinfo);
$page->assign("goldlist" , $goldlist);
$page->assign("clist" , $clist);
$page->assign("indexcls" , "nv_current");
$myHouse->setCollection("r_".$rinfo["id"] , $rinfo["plaza"] , $rinfo["style_detail"]);
$page->output();



ob_end_flush();

?>
